package com.hqd.ch03.bean;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class User {
    private String name;
    private int age;
    private IdCard idCard;


    public User(String name, IdCard idCard) {
        this.name = name;
        this.idCard = idCard;
    }

    public User getUser() {
        return this;
    }

    public int calc(int i, int j) {
        return i + j;
    }
}
